package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("comment_like")
public class CommentLike extends Model<CommentLike> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户Id
     */
    @TableField("memberId")
    private Integer memberId;

    /**
     * 被点赞内容Id
     */
    @TableField("itemId")
    private Integer itemId;


    /**
     * 类型：1.点赞 0，取消
     */
    private String type;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private Date updateTime;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    public static final String MEMBERID = "memberId";

    public static final String ITEMID = "itemId";


    public static final String TYPE = "type";

    public static final String CREATETIME = "createTime";

    public static final String UPDATETIME = "updateTime";

    public static final String ID = "id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
